/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.model;

import lombok.Data;
import lombok.ToString;
import org.ipig.constants.DataCnst;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 字段映射器conf
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: FieldMapperConf.java 4 2020-01-23 06:37:58Z ts <comchnts@163.com> $$
 * @since 1.0
 */
@Data
@ToString
public class FieldMapperConf implements Serializable {
    //唯一编码
    private String code;
    //功能说明
    private String title;
    //源字段名
    private String fromName;
    //源类型
    private String fromType;
    //目前仅针对日期格式有用[DateTimeCnst.Formatter]
    private String fromFormatter;
    //目标字段名
    private String toName;
    //目标类型
    private String toType;
    //日期格式通常为yyyyMMddHHmmss
    private String toFormatter;
    //所属领域
    private String domain;
    //默认值
    private String defaultValue;
    //调试标识 默认关闭
    private Boolean debugEnable = Boolean.valueOf(false);
    //逻辑删除标识
    private String deletedFlag = DataCnst.FLAG_NORMAL;
    //createTime
    private String createTime;
    //creatorId
    private String creatorId;
    //modifyTime
    private String modifyTime;
    //modifierId
    private String modifierId;
    // 其它属性
    private Map<String, Object> props = new HashMap<String, Object>();
}